package com.wy.authority.service.impl;

import com.wy.authority.entity.Role;
import com.wy.authority.mapper.RoleMapper;
import com.wy.authority.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/12 13:51
 * @Description:
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role> find() {
        return roleMapper.find();
    }

    @Override
    public int insert(Role role) {
        return roleMapper.insert(role);
    }
}
